package main.java.com.silence.pojo;

/**
 * Author: Silence
 * Date: 2017/6/9 10:48
 */
public class BillType {
    private Integer id;
    private String name;

    public BillType() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "BillType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BillType billType = (BillType) o;

        if (id != null ? !id.equals(billType.id) : billType.id != null) return false;
        return name != null ? name.equals(billType.name) : billType.name == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        return result;
    }
}
